import request from '@/utils/request';

export function userList(query) {
  return request({
    url: '/channel/channelUser/user',
    method: 'get',
    params: query
  });
}


export function addChannelUser(data) {
  return request({
    url: '/channel/channelUser/add',
    method: 'post',
    data: data
  })
}

export function editChannelUser(data) {
  return request({
    url: '/channel/channelUser/edit',
    method: 'put',
    data: data
  })
}

export function channelUserList(query) {
  return request({
    url: '/channel/channelUser/list',
    method: 'get',
    params: query
  })
}

export function recommendUserList(query) {
  return request({
    url: '/channel/channelUser/recommend',
    method: 'get',
    params: query
  })
}
